Optimal. Leaf size=122 \[ -\frac {a \text {ArcTan}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {a \tanh ^{-1}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {2 a E\left (\left .\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )\right |2\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3963, 3957,
2917, 2644, 335, 304, 209, 212, 2719} \begin {gather*} -\frac {a \text {ArcTan}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}+\frac {a \tanh ^{-1}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}}+\frac {2 a E\left (\left .\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )\right |2\right )}{d \sqrt {\sin (c+d x)} \sqrt {e \csc (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rule 2644
Rule 2719
Rule 2917
Rule 3957
Rule 3963
Rubi steps
\begin {align*} \int \frac {a+a \sec (c+d x)}{\sqrt {e \csc (c+d x)}} \, dx &=\frac {\int (a+a \sec (c+d x)) \sqrt {\sin (c+d x)} \, dx}{\sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=-\frac {\int (-a-a \cos (c+d x)) \sec (c+d x) \sqrt {\sin (c+d x)} \, dx}{\sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=\frac {a \int \sqrt {\sin (c+d x)} \, dx}{\sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {a \int \sec (c+d x) \sqrt {\sin (c+d x)} \, dx}{\sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=\frac {2 a E\left (\left .\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )\right |2\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {a \text {Subst}\left (\int \frac {\sqrt {x}}{1-x^2} \, dx,x,\sin (c+d x)\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=\frac {2 a E\left (\left .\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )\right |2\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {(2 a) \text {Subst}\left (\int \frac {x^2}{1-x^4} \, dx,x,\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=\frac {2 a E\left (\left .\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )\right |2\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {a \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}-\frac {a \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ &=-\frac {a \tan ^{-1}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {a \tanh ^{-1}\left (\sqrt {\sin (c+d x)}\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}+\frac {2 a E\left (\left .\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )\right |2\right )}{d \sqrt {e \csc (c+d x)} \sqrt {\sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.57, size = 130, normalized size = 1.07 \begin {gather*} \frac {a \left (-4 \cot (c+d x) \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};\csc ^2(c+d x)\right )+\sqrt {-\cot ^2(c+d x)} \sqrt {\csc (c+d x)} \left (2 \text {ArcTan}\left (\sqrt {\csc (c+d x)}\right )-\log \left (1-\sqrt {\csc (c+d x)}\right )+\log \left (1+\sqrt {\csc (c+d x)}\right )\right )\right )}{2 d \sqrt {-\cot ^2(c+d x)} \sqrt {e \csc (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.21, size = 1535, normalized size = 12.58
method | result | size |
default | \(\text {Expression too large to display}\) | \(1535\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 1.42, size = 206, normalized size = 1.69 \begin {gather*} \frac {{\left (4 \, \sqrt {2 i} a {\rm weierstrassZeta}\left (4, 0, {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) + 4 \, \sqrt {-2 i} a {\rm weierstrassZeta}\left (4, 0, {\rm weierstrassPInverse}\left (4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + 2 \, a \arctan \left (\frac {76 \, \cos \left (d x + c\right )^{2} + \frac {425 \, {\left (\cos \left (d x + c\right )^{2} + \sin \left (d x + c\right ) - 1\right )}}{\sqrt {\sin \left (d x + c\right )}} - 152 \, \sin \left (d x + c\right ) - 152}{2 \, {\left (16 \, \cos \left (d x + c\right )^{2} + 393 \, \sin \left (d x + c\right ) - 32\right )}}\right ) + a \log \left (\frac {\cos \left (d x + c\right )^{2} + \frac {4 \, {\left (\cos \left (d x + c\right )^{2} - \sin \left (d x + c\right ) - 1\right )}}{\sqrt {\sin \left (d x + c\right )}} - 6 \, \sin \left (d x + c\right ) - 2}{\cos \left (d x + c\right )^{2} + 2 \, \sin \left (d x + c\right ) - 2}\right )\right )} e^{\left (-\frac {1}{2}\right )}}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int \frac {1}{\sqrt {e \csc {\left (c + d x \right )}}}\, dx + \int \frac {\sec {\left (c + d x \right )}}{\sqrt {e \csc {\left (c + d x \right )}}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {a+\frac {a}{\cos \left (c+d\,x\right )}}{\sqrt {\frac {e}{\sin \left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________